package com.kxmall.product.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * 商品分类视图对象 kx_store_category
 */

@Data
@ApiModel("商品分类视图对象")
@ExcelIgnoreUnannotated
public class KxStoreCategoryVo {

    private static final long serialVersionUID = 1L;

    /**
     * 商品分类表ID
     */
    @ApiModelProperty(value = "商品分类表ID")
    private Long id;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    @ExcelProperty(value = "父ID")
    private Long pid;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @ExcelProperty(value = "分类名称")
    private String cateName;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @ExcelProperty(value = "排序")
    private Long sort;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    @ExcelProperty(value = "图标")
    private String pic;

    /**
     * 是否推荐
     */
    @ApiModelProperty(value = "是否推荐")
    @ExcelProperty(value = "是否推荐")
    private Integer isShow;

    /**
     * 删除状态
     */
    @ApiModelProperty(value = "删除状态")
    private Integer isDel;

    /**
     * 标签
     */
    @ApiModelProperty(value = "标签")
    private String label;


    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<KxStoreCategoryVo> children;

}
